// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-11-11

#include "stdafx.h"
#include "svr_asyncobj.h"

namespace JoyServer
{

CJoyAsyncObject::CJoyAsyncObject()
{
}

CJoyAsyncObject::~CJoyAsyncObject()
{
}

void CJoyAsyncObject::Cancel()
{
    -- m_asyncState;
}

void CJoyAsyncObject::Execute()
{
    if(++m_asyncState > 0)
    {
        OnExecute();
    }
    -- m_asyncState;
}

void CJoyAsyncObject::OnExecute()
{
}

} // namespace JoyServer
